package com.bjsxt.sm.users.pojo;

import java.util.Date;

public class Arenttable
{
	private int id;
	private int usersId;
	private int carsId;
	private int adminsId;
	private double imprest;
	private double shouldpayprice;
	private double price;
	private Date begindate;
	private Date shouldreturndate;
	private Date returndate;
	private byte rentflag;
	private byte status;
	private Date createTime;
	private Date updateTime;

	 
	//字符串显示
	private String rentflagStr;
	private String statusStr;
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getUsersId()
	{
		return usersId;
	}

	public void setUsersId(int usersId)
	{
		this.usersId = usersId;
	}

	public int getCarsId()
	{
		return carsId;
	}

	public void setCarsId(int carsId)
	{
		this.carsId = carsId;
	}

	public int getAdminsId()
	{
		return adminsId;
	}

	public void setAdminsId(int adminsId)
	{
		this.adminsId = adminsId;
	}

	public double getImprest()
	{
		return imprest;
	}

	public void setImprest(double imprest)
	{
		this.imprest = imprest;
	}

	public double getShouldpayprice()
	{
		return shouldpayprice;
	}

	public void setShouldpayprice(double shouldpayprice)
	{
		this.shouldpayprice = shouldpayprice;
	}

	public double getPrice()
	{
		return price;
	}

	public void setPrice(double price)
	{
		this.price = price;
	}

	public Date getBegindate()
	{
		return begindate;
	}

	public void setBegindate(Date begindate)
	{
		this.begindate = begindate;
	}

	public Date getShouldreturndate()
	{
		return shouldreturndate;
	}

	public void setShouldreturndate(Date shouldreturndate)
	{
		this.shouldreturndate = shouldreturndate;
	}

	public Date getReturndate()
	{
		return returndate;
	}

	public void setReturndate(Date returndate)
	{
		this.returndate = returndate;
	}

	public byte getRentflag()
	{
		return rentflag;
	}

	public void setRentflag(byte rentflag)
	{
		this.rentflag = rentflag;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public String getRentflagStr()
	{
		AusersEnum[] usersEnum=AusersEnum.values();
		for (int i = 0; i < usersEnum.length; i++)
		{
			AusersEnum ausersEnum = usersEnum[i];
			if(ausersEnum.getSex()==this.rentflag && ausersEnum.toString().startsWith("rentflag_")){
				this.rentflagStr=ausersEnum.getInfo();
			}
		}
		return rentflagStr;
	}

	public void setRentflagStr(String rentflagStr)
	{
		this.rentflagStr = rentflagStr;
	}

	public String getStatusStr()
	{
		AusersEnum[] usersEnum=AusersEnum.values();
		for (int i = 0; i < usersEnum.length; i++)
		{
			AusersEnum ausersEnum = usersEnum[i];
			if(ausersEnum.getSex()==this.status && ausersEnum.toString().startsWith("rentflag_"))
			{
				this.statusStr=ausersEnum.getInfo();
			}
		}
		return statusStr;
	}

	public void setStatusStr(String statusStr)
	{
		this.statusStr = statusStr;
	}

}
